import {GithubOutlined, } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-layout';
import {GITEE_SRC, GITHUB_SRC} from "@/constants";

const Footer: React.FC = () => {
  const defaultMessage = 'MiaoFihser 出品';
  const currentYear = new Date().getFullYear();
  return (
    <DefaultFooter
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        // {
        //   key: 'Ant Design Pro',
        //   title: 'Ant Design Pro',
        //   href: 'https://pro.ant.design',
        //   blankTarget: true,
        // },
        {
          key: 'github',
          title: <><GithubOutlined /> MiaoFisher GitHub</>,
          href: GITHUB_SRC,
          blankTarget: true,
        },
        {
          key: 'github',
          title: <><GithubOutlined /> MiaoFisher Gitee</>,
          href: GITEE_SRC,
          blankTarget: true,
        },
        // {
        //   key: 'gitee',
        //   title: <GitlabFilled />,
        //   href: 'https://gitee.com/MiaoFisher',
        //   blankTarget: true,
        // },
      ]}
    />
  );
};

export default Footer;
